ci(scorecard): drop SCORECARD_TOKEN so Branch-Protection goes inconclusive#708
Conversation
…lusive Passing repo_token unlocked the Branch-Protection check, but our branch protection is intentionally weak (solo maintainer, no required approvals, enforce_admins:false to keep auto-merge-on-green working) so it only scores ~4. OSSF aggregates by mean and OMITS inconclusive (-1) checks while INCLUDING scored ones — so folding a 4 into otherwise ~7 checks drags the aggregate down (observed 6.9->6.7 when the token was added; now 7.2 with BP=4 included). Removing the token reverts Branch-Protection to inconclusive (the default state for any repo that doesn't grant Scorecard a privileged PAT), so it stops counting and the aggregate should rise (~7.5). Not strengthening branch protection instead: enforce_admins:true would block admin merges and break the auto-merge flow. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Claude finished @blove's task in 36s —— View job PR Review
This PR looks good. The change is minimal (4-line deletion), the reasoning is solid, and no issues found. Correctness: The math checks out. Without Security: Removing a secret reference is strictly safer — the attack surface shrinks. All actions remain SHA-pinned, One follow-up for the repo owner (not a blocker): The PR description notes that the This is ready to merge. |
Summary
Remove
repo_token: ${{ secrets.SCORECARD_TOKEN }}fromscorecard.yml's "Run analysis" step. Everything else (publish_results: true, permissions, SHA pins) is unchanged.Why — aggregate mechanics
Passing the PAT unlocked OSSF's Branch-Protection check. But our branch protection is intentionally weak — solo maintainer, no required approvals,
enforce_admins: false(needed to keep auto-merge-on-green working) — so it only scores ~4.OSSF Scorecard's aggregate is a mean that omits inconclusive (
-1) checks but includes scored ones. So folding a4into our otherwise ~7 checks pulls the average down, not up:(Source: ossf/scorecard docs —
-1checks are omitted from the aggregate.)Notes
main+ weekly schedule; the public API updates after that run).SCORECARD_TOKENrepo secret and its PAT can be deleted separately by the owner — nothing references it anymore (grep -rn SCORECARD_TOKEN .githubis clean).Deliberately NOT doing
Strengthening branch protection instead.
enforce_admins: true/ required approvals would block admin merges and break the auto-merge-on-green flow. The goal is simply to let Branch-Protection return to inconclusive so it stops counting.🤖 Generated with Claude Code